package com.tsingtao.springboot2.service;

import com.tsingtao.springboot2.dto.Document;
import org.dromara.easyes.core.biz.EsPageInfo;
import org.dromara.easyes.core.conditions.select.LambdaEsQueryWrapper;
import org.springframework.web.bind.annotation.RequestBody;

import javax.print.Doc;
import java.util.List;

public interface DocumentService {

    Boolean createIndex(Document document);

    Boolean testCreateIndexByWrapper();

    Document testInsert(Document document);

    List<Document> selectList(LambdaEsQueryWrapper<Document> wrapper);

    Boolean testUpdateIndex();

    EsPageInfo<Document> testEsPage(EsPageInfo<Document> pageInfo, @RequestBody Document document);

}
